feat: rename lightning embedding command to ui-embedding#995
Conversation
Rename the `template generate lightning embedding` command to `template generate ui-embedding`. Update command class, messages, tests, package.json topic, and command snapshot. Remove "widget" terminology and standardize angle-bracket usage in help text (<lightning-ui-embedding>). @W-23468815@ @W-23301022@ @W-23301024@
| "ui-bundle": { | ||
| "description": "Generate a UI bundle." | ||
| }, | ||
| "ui-embedding": { |
There was a problem hiding this comment.
Why is this a net-new entry and not a renaming of an existing one?
There was a problem hiding this comment.
@jfeingold35 Good question — it's net-new rather than a rename because the old command wasn't a top-level topic. It was template generate lightning embedding, a leaf command nested under the existing lightning topic (src/commands/template/generate/lightning/embedding.ts), so there was no embedding topic entry to rename — the lightning entry describes that whole command group (app/component/event/etc.), not the embedding command specifically.
This PR promotes it to a top-level command, template generate ui-embedding (now at .../ui-embedding/index.ts). A top-level command needs its own topic description, exactly like the neighboring ui-bundle entry — which is why this shows up as an addition. The lightning topic entry is untouched since its other subcommands still live there.
What
Renames the
sf template generate lightning embeddingcommand tosf template generate ui-embedding.lightning/embedding.ts→ui-embedding/index.tslightningEmbedding.md→uiEmbedding.mdui-embedding/index.nut.tspackage.jsonoclif topic updated toui-embeddingcommand-snapshot.jsonregenerated<lightning-ui-embedding>)Dependency
UIEmbeddingOptions,TemplateType.UIEmbedding,isAllowedUIEmbeddingSrcUrl,UI_EMBEDDING_SANDBOX_TOKENS) must be published to@salesforce/templatesfirst, or CI here will fail to resolve them. Merge/release after that PR.Note
Command is
state = 'beta'andhidden = true— not in README/docs, no back-compat obligation.